﻿using System.Collections.Generic;

namespace Protocol.OUSProtocol.Model
{
    public class Status
    {
        private short NTemp = 3;
        private short NHumi = 1;
        /// <summary>
        /// 实际温度 3路
        /// </summary>
        public List<string> temp_r_List = new List<string>();//NTempx2
        /// <summary>
        /// 实际湿度 1路
        /// </summary>
        public string humi_r { get; set; } //NHumix2
        /// <summary>
        /// 氨气
        /// </summary>
        public string nh3_r { get; set; }//2
        /// <summary>
        /// CO2
        /// </summary>
        public string co2_r { get; set; }//2
        /// <summary>
        /// 通风量
        /// </summary>
        public string wind_r { get; set; }//4
        /// <summary>
        /// 室内平均温度
        /// </summary>
        public string temp_avg { get; set; }//2
        /// <summary>
        /// 目标温度
        /// </summary>
        public string temp_target { get; set; }//2
        /// <summary>
        /// 日龄
        /// </summary>
        public string day { get; set; }//2
        /// <summary>
        /// 当前风机百分比
        /// </summary>
        public string posFan { get; set; }//1
        /// <summary>
        /// 风门位置
        /// </summary>
        public string posDoor { get; set; }//1
        /// <summary>
        /// 温度控制模式 0-自设 1-曲线
        /// </summary>
        public string modeTemp { get; set; }//1
        /// <summary>
        /// 运行模式 0-空舍 1-生产
        /// </summary>
        public string modeRun { get; set; }//1
        /// <summary>
        /// 控制模式 0-线性 1-比例 2-固定
        /// </summary>
        public string modeCtrl { get; set; }//1
        /// <summary>
        /// 风门模式 0=变频, 1=继电器, 3=无
        /// </summary>
        public string modeDoor { get; set; }//1
        /// <summary>
        /// 报警状态，每1bit 表示一种报警 ,该位为0表示无此报警
        /// </summary>
        public string alarmState { get; set; }//4
        /// <summary>
        /// 每种类型的继电器对应的开关状态
        /// </summary>
        public string relayState { get; set; }//4
        /// <summary>
        /// 版本号
        /// </summary>
        public string version { get; set; }//16
        /// <summary>
        /// CPUID
        /// </summary>
        public string CPUID { get; set; }//4
        /// <summary>
        /// FAID
        /// </summary>
        public string FAID { get; set; }//4
        /// <summary>
        /// 
        /// </summary>
        public string QCCID { get; set; }
        /// <summary>
        /// 0=氨气探头或1=CO2
        /// </summary>
        public string NH3CO2 { get; set; }

        public string rev { get; set; }

        public string wYestoday { get; set; }
        public string wToday { get; set; }
        public string eYestoday { get; set; }
        public string eToday { get; set; }
    }
}
